import service from '@/utils/request'

// @Tags BcRecord
// @Summary 创建bcRecord表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecord true "创建bcRecord表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcRecord/createBcRecord [post]
export const createBcRecord = (data) => {
  return service({
    url: '/bcRecord/createBcRecord',
    method: 'post',
    data
  })
}

// @Tags BcRecord
// @Summary 删除bcRecord表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecord true "删除bcRecord表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcRecord/deleteBcRecord [delete]
export const deleteBcRecord = (data) => {
  return service({
    url: '/bcRecord/deleteBcRecord',
    method: 'delete',
    data
  })
}

// @Tags BcRecord
// @Summary 批量删除bcRecord表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcRecord表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcRecord/deleteBcRecord [delete]
export const deleteBcRecordByIds = (data) => {
  return service({
    url: '/bcRecord/deleteBcRecordByIds',
    method: 'delete',
    data
  })
}

// @Tags BcRecord
// @Summary 更新bcRecord表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecord true "更新bcRecord表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcRecord/updateBcRecord [put]
export const updateBcRecord = (data) => {
  return service({
    url: '/bcRecord/updateBcRecord',
    method: 'put',
    data
  })
}

// @Tags BcRecord
// @Summary 用id查询bcRecord表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcRecord true "用id查询bcRecord表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcRecord/findBcRecord [get]
export const findBcRecord = (params) => {
  return service({
    url: '/bcRecord/findBcRecord',
    method: 'get',
    params
  })
}

// @Tags BcRecord
// @Summary 分页获取bcRecord表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcRecord表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcRecord/getBcRecordList [get]
export const getBcRecordList = (params) => {
  return service({
    url: '/bcRecord/getBcRecordList',
    method: 'get',
    params
  })
}

export const getProjectList = () => {
  return service({
    url: '/bcProject/getProjectList',
    method: 'get'
  })
}
